import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: Index
  }
  /*
   * {
   *   path: '/demo',
   *   name: 'demo',
   *   component: () =>
   *   import([> webpackChunkName: 'demo' <] '../views/Demo.vue')
   * }
   */
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
